package equipe2msvy.ProjectServeurApplication.beans;


import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.Table;

@Entity
@Table(name="UTILISATEUR")
@Inheritance(strategy = InheritanceType.JOINED)
public class Utilisateur implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name="ID_UTILISATEUR")
	private int idUtilisateur;
	@Column(name="NOM_UTILISATEUR")
	private String login;
	@Column(name="MOT_DE_PASSE")
	private String password;
	@Column(name="EXISTENCE_UTiLISATEUR")
	private boolean existUser; 
	public Utilisateur(String login, String password) {
		super();
		this.login = login;
		this.password = password;
	}
	public Utilisateur() {
		super();
		// TODO Auto-generated constructor stub
	}
	public int getIdUtilisateur() {
		return idUtilisateur;
	}
	public void setIdUtilisateur(int idUtilisateur) {
		this.idUtilisateur = idUtilisateur;
	}
	public String getLogin() {
		return login;
	}
	public void setLogin(String login) {
		this.login = login;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public boolean isExistUser() {
		return existUser;
	}
	public void setExistUser(boolean existUser) {
		this.existUser = existUser;
	}
}
